import { config, request } from 'utils'

const { api } = config
const {
  patrolSpecialSiteCountUrl,
  patrolSpecialWorkflowCountUrl,
  patrolSpecialWorkflowInfoUrl,
  patrolSpecialWorkflowExtListUrl,
  patrolSpecialPatrolPersonCountUrl,
  patrolSpecialPatrolPersonInfoUrl
} = api


// POST，管理站统计
export async function siteCount(params) {
  return request(patrolSpecialSiteCountUrl, {
    method: 'POST',
    data: params,
  });
}

// POST，线路巡护统计
export async function workflowCount(params) {
  return request(patrolSpecialWorkflowCountUrl, {
    method: 'POST',
    data: params,
  });
}

// POST，线路详情
export async function workflowInfo(params) {
  return request(patrolSpecialWorkflowInfoUrl, {
    method: 'POST',
    data: params,
  });
}

// POST，违法上报
export async function workflowExtList(params) {
  return request(patrolSpecialWorkflowExtListUrl, {
    method: 'POST',
    data: params,
  });
}

// POST，巡护人员统计
export async function patrolPersonCount(params) {
  return request(patrolSpecialPatrolPersonCountUrl, {
    method: 'POST',
    data: params,
  });
}


// POST，巡护人员详情
export async function patrolPersonInfo(params) {
  return request(patrolSpecialPatrolPersonInfoUrl, {
    method: 'POST',
    data: params,
  });
}
